package com.pig4cloud.pigx.contract.mapstruct;

import com.pig4cloud.pigx.contract.bo.ContractTradeNewBO;
import com.pig4cloud.pigx.contract.mongo.entity.ContractTradeMongo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * ContractTradeStruct
 *
 * @date 2022/8/12 16:32
 */
@Mapper
public interface ContractTradeStruct {
	ContractTradeStruct INSTANCE = Mappers.getMapper(ContractTradeStruct.class);

	/**
	 * ContractTradeMongo转换为ContractTradeNewBO
	 *
	 * @param mongo mongo
	 * @return {@link ContractTradeNewBO}
	 * @date 2022/7/14 14:21
	 */
	ContractTradeNewBO mongo2TradeNewBO(ContractTradeMongo mongo);
}
